package genetic;

public abstract class Genotype {
	protected TreeNode tree;
	
	public Genotype(TreeNode tree) {
		this.tree = tree;
	}
	
	public abstract Genotype clone();
	public TreeNode getTree(){
		return tree;
	}
	public void setTree(TreeNode child){
		tree = child;
	}
	public void setTreeIndexes(){
		int totalKids = tree.getTotalNumKids();
		tree.setIndexes(0, totalKids+1);
	}

	public int getDepth() {
		return tree.getMaxDepth();
	}
}
